package com.lzxuni.modules.productdisplay.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.lzxuni.modules.common.entity.FileEntity;
import com.lzxuni.modules.system.entity.BaseArea;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 产品表
 * </p>
 *
 * @author llj
 * @since 2019-06-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("base_product_display")
public class ProductDisplay extends Model<ProductDisplay> {

    private static final long serialVersionUID = 1L;

    /**
     * 产品id
     */
    @TableId
    private String ywId;

    /**
     * 产品名称
     */
    private String productName;

    /**
     * 产品防伪
     */
    private String productFy;

    /**
     * 质检报告
     */
    private String qualityInspectionReport;

    /**
     * 产品介绍
     */
    private String productIntroduction;

    /**
     * 所属企业
     */
    private String affiliatedEnterprises;

    /**
     * 产品类型
     */
    private String productType;

    /**
     * 公司地点省级编码
     */
    private String provinceId;

    /**
     * 公司地点市级编码
     */
    private String cityId;

    /**
     * 公司地点区县级编码
     */
    private String countyId;

    /**
     * 公司地点乡镇编码
     */
    private String townId;

    /**
     * 公司地点村级编码
     */
    private String villageId;

    /**
     * 产地
     */
    private String placeOfOrigin;

    /**
     * 追溯链条
     */
    private String traceabilityChain;

    /**
     * 追溯码
     */
    private String traceabilityCode;

    /**
     * 添加时间
     */
    private Date createTime;

    /**
     * 规模
     */
    private String scale;

    /**
     * 产量
     */
    private String yield;

    @TableField(exist = false)
    private List<FileEntity> fileEntities;

    @TableField(exist = false)
    private String fileEntitiess;


    @TableField(exist = false)
    private String chainName;

    @TableField(exist = false)
    private String enterpriseName;

    @TableField(exist = false)
    private String productpictures;

    @TableField(exist = false)
    private String province;
    @TableField(exist = false)
    private String city;
    @TableField(exist = false)
    private String county;
    @TableField(exist = false)
    private String town;
    @TableField(exist = false)
    private String village;

    @TableField(exist = false)
    private List<FileEntity> fileEntities1;
}
